# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=fonteditfs
pkgver=1.2
pkgrel=7
pkgdesc="console font editor"
arch=('loong64' 'x86_64')
url="http://fonteditfs.sourceforge.net/"
license=('GPL')
depends=('ncurses')
source=("https://downloads.sourceforge.net/sourceforge/fonteditfs/fnteditfs-$pkgver.tgz")
sha512sums=('8fae1b44ced8b07ebb8ef39149d0940f61f3e5dbefa84df2445b58d9e2d2c1432392aacc500076f9360d947c00277be66592910372bba33f913ceea2f6655012')

build() {
  cd "$srcdir"/fnteditfs-$pkgver
  make
}

package() {
  cd "$srcdir"/fnteditfs-$pkgver
  install -D -m0755 fnteditfs "$pkgdir"/usr/bin/fnteditfs
  install -D -m0644 fnteditfs.1 "$pkgdir"/usr/share/man/man1/fnteditfs.1
}
